package com.tarrena.shoot; import java.util.Collection; import java.util.Random; import java.util.concurrent.CopyOnWriteArrayList; public class AirPlane extends FlyingObject implements Enemy{ private int speed=1; public int getScore(){ return 5;//´òµôÒ»¸öµÐ»úµÄ5·Ö£» } public AirPlane(){ image=ShootGame.airplane; width=image.getWidth(); height=image.getHeight(); Random rand=new Random(); x=rand.nextInt(ShootGame.WIDTH-this.width); y=-this.height; } @Override public void step() { // Random rand=new Random(); // int n=random y+=speed; } public Bullet shoot(){ int xStep = this.width/4; Bullet bullets=new Bullet(this.x+2*xStep,this.y+30); return bullets; } }
最近下载更多
Zeorwyc LV8
2022年11月22日
德莱文 LV15
2022年9月21日
3199625134 LV10
2022年4月22日
java代写 LV7
2022年2月10日
玉響未来 LV1
2021年12月26日
一只小小小菜 LV2
2021年12月10日
最代码-宋家辉 LV61
2021年12月5日
Daydream LV2
2021年12月5日
978806986 LV16
2021年12月4日
tangjj7260 LV18
2021年11月20日
最近浏览更多
2656362504
2023年12月12日
暂无贡献等级
jkjfdgbkl LV2
2023年11月1日
tyiyiyuiyuihui LV3
2023年10月11日
2017143155 LV12
2023年6月26日
1111123ah
2023年6月6日
暂无贡献等级
2033768945
2023年6月4日
暂无贡献等级
小安同学 LV7
2023年5月11日
30602220235
2023年5月6日
暂无贡献等级
1739332236 LV1
2023年2月23日
冯不二 LV1
2023年2月13日